/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-27 09:57:24
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-22 16:29:48
 */

import { FormSchema } from '/@/components/Table';

// 库存输入框
export const EditSchemas: FormSchema[] = [
  {
    field: 'real_name',
    component: 'Input',
    label: '姓 名',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入姓名',
    },
  },
  {
    field: 'user_name',
    component: 'Input',
    label: '账 号',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入账号',
    },
  },
  {
    field: 'sort',
    component: 'Input',
    label: '排 序',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    defaultValue: 100,
    componentProps: {
      placeholder: '请输入账号',
    },
  },
];

export const addSchemas: FormSchema[] = [
  {
    field: 'real_name',
    component: 'Input',
    label: '姓 名',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入姓名',
    },
  },
  {
    field: 'user_name',
    component: 'Input',
    label: '账 号',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入账号',
    },
  },
  {
    field: 'password',
    component: 'Input',
    label: '密 码',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入账号',
    },
  },
  {
    field: 'password_confirm',
    component: 'Input',
    label: '确认密码',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    componentProps: {
      placeholder: '请输入账号',
    },
  },
  {
    field: 'sort',
    component: 'Input',
    label: '排 序',
    colProps: {
      span: 24,
    },
    rules: [{ required: true }],
    defaultValue: 100,
    componentProps: {
      placeholder: '请输入账号',
    },
  },
];
